package connect4client.user;

import game.Player;


public class User {
	
	private boolean loggedIn = false;
	private String login;
	private String password;
	private String role;
	private int ranking;
				
	
	public boolean isLoggedIn() {
		return loggedIn;
	}

	public synchronized void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}

	public String getLogin() {
		return login;
	}


	public void setLogin(String login) {
		this.login = login;
	}


	public String getPassword() {
		return password;
	}
	
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	
	public int getRanking(){
		return this.ranking;
	}
	
	
	public void setRanking(int ranking){
		this.ranking = ranking;
	}
	
	
	public Player getPlayer() {
		return new Player(login, password, role, ranking);
	}

	
	public String getRole() {
		return role;
	}

	
	public void setRole(String role) {
		this.role = role;
	}
}
